package org.demo.test.akka;

import akka.actor.ActorRef;
import akka.actor.Props;

public class AkkaClient {

    /*public static void main(String[] args) {
        ActorRef actorRef1 = actorSystem.actorOf(Props.create(SenderActor.class), "sender1");
        ActorRef actorRef2 = actorSystem.actorOf(Props.create(SenderActor.class), "sender2");
        ActorRef actorRef3 = actorSystem.actorOf(Props.create(SenderActor.class), "sender3");

        Thread thread1 = new Thread(new Runnable() {
            @Override
            public void run() {
                actorRef1.tell("1sdf1", actorRef1);
                actorRef2.tell("2sdf1", actorRef2);
                actorRef3.tell("3sdf1", actorRef3);
            }
        });

        Thread thread2 = new Thread(new Runnable() {
            @Override
            public void run() {
                actorRef1.tell("1sdf2", actorRef1);
                actorRef2.tell("2sdf2", actorRef2);
                actorRef3.tell("3sdf2", actorRef3);
            }
        });

        Thread thread3 = new Thread(new Runnable() {
            @Override
            public void run() {
                actorRef1.tell("1sdf3", actorRef1);
                actorRef2.tell("2sdf3", actorRef2);
                actorRef3.tell("3sdf3", actorRef3);
            }
        });

        thread1.start();
        thread2.start();
        thread3.start();
    }*/
}
